package com.rmy.queue.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rmy.queue.mapper.QmsWindowVoicMapper;
import com.rmy.queue.domain.QmsWindowVoic;
import com.rmy.queue.service.IQmsWindowVoicService;

/**
 * 窗口和语音模块关联Service业务层处理
 * 
 * @author rmy
 * @date 2022-10-12
 */
@Service
public class QmsWindowVoicServiceImpl implements IQmsWindowVoicService 
{
    @Autowired
    private QmsWindowVoicMapper qmsWindowVoicMapper;

    /**
     * 查询窗口和语音模块关联
     * 
     * @param windowId 窗口和语音模块关联主键
     * @return 窗口和语音模块关联
     */
    @Override
    public QmsWindowVoic selectQmsWindowVoicByWindowId(Long windowId)
    {
        return qmsWindowVoicMapper.selectQmsWindowVoicByWindowId(windowId);
    }

    /**
     * 查询窗口和语音模块关联列表
     * 
     * @param qmsWindowVoic 窗口和语音模块关联
     * @return 窗口和语音模块关联
     */
    @Override
    public List<QmsWindowVoic> selectQmsWindowVoicList(QmsWindowVoic qmsWindowVoic)
    {
        return qmsWindowVoicMapper.selectQmsWindowVoicList(qmsWindowVoic);
    }

    /**
     * 新增窗口和语音模块关联
     * 
     * @param qmsWindowVoic 窗口和语音模块关联
     * @return 结果
     */
    @Override
    public int insertQmsWindowVoic(QmsWindowVoic qmsWindowVoic)
    {
        return qmsWindowVoicMapper.insertQmsWindowVoic(qmsWindowVoic);
    }

    /**
     * 修改窗口和语音模块关联
     * 
     * @param qmsWindowVoic 窗口和语音模块关联
     * @return 结果
     */
    @Override
    public int updateQmsWindowVoic(QmsWindowVoic qmsWindowVoic)
    {
        return qmsWindowVoicMapper.updateQmsWindowVoic(qmsWindowVoic);
    }

    /**
     * 批量删除窗口和语音模块关联
     * 
     * @param windowIds 需要删除的窗口和语音模块关联主键
     * @return 结果
     */
    @Override
    public int deleteQmsWindowVoicByWindowIds(Long[] windowIds)
    {
        return qmsWindowVoicMapper.deleteQmsWindowVoicByWindowIds(windowIds);
    }

    /**
     * 删除窗口和语音模块关联信息
     * 
     * @param windowId 窗口和语音模块关联主键
     * @return 结果
     */
    @Override
    public int deleteQmsWindowVoicByWindowId(Long windowId)
    {
        return qmsWindowVoicMapper.deleteQmsWindowVoicByWindowId(windowId);
    }
}
